package com.ycz.pattern.create.singlepattern;

/**
 * @Description
 * @ClassName SingleObject
 * @Author yanchengzhi
 * @date 2023.11.07 01:27
 */
public class SingleObject {

    private static class SingletonHolder {
        private static final SingleObject INSTANCE = new SingleObject();
    }

    private SingleObject() {
    }

    public static final SingleObject getInstance() {
        return SingletonHolder.INSTANCE;
    }

}
